package tech.yangzhijie.basic.java06.test0501;

public class Trapezoid extends MyGraphic {

    private double d1;
    private double d2;
    private double gao;

    @Override
    public double area() {
        return ((d1+d2)*gao)/2;
    }
}
